Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.ecm.favorites.contentview--contentViews

This contribution is part of XML component org.nuxeo.ecm.favorites.contentview inside nuxeo-platform-collections-jsf-9.10.jar /OSGI-INF/favorites-contentviews-contrib.xml

Extension Point

Extension point contentViews of component ContentViewService.

Contributed Items

  • <contentView name="favorites_content_contentview">
    
          <title>label.search.results</title>
          <translateTitle>true</translateTitle>
    
          <emptySentence>label.content.empty.search</emptySentence>
          <translateEmptySentence>true</translateEmptySentence>
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <whereClause docType="Document">
              <fixedPart>
                ecm:mixinType != 'HiddenInNavigation' AND
                ecm:isCheckedInVersion = 0 AND ecm:currentLifeCycleState !=
                'deleted' AND
                collectionMember:collectionIds/* = ?
              </fixedPart>
            </whereClause>
            <parameter>#{currentUserFavorites.id}</parameter>
            <sort ascending="true" column="dc:title"/>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
    
          <searchLayout name="collection_content_default"/>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
          </refresh>
          <cacheKey>only_one_cache</cacheKey>
          <cacheSize>1</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="document_virtual_navigation_listing_ajax" showCSVExport="true" showSyndicationLinks="true" title="document_listing" translateTitle="true"/>
          </resultLayouts>
    
          <selectionList>COLLECTION_CURRENT_SELECTION</selectionList>
          <actions category="COLLECTION_ACTION"/>
    
        </contentView>

XML Source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">

    <contentView name="favorites_content_contentview">

      <title>label.search.results</title>
      <translateTitle>true</translateTitle>

      <emptySentence>label.content.empty.search</emptySentence>
      <translateEmptySentence>true</translateEmptySentence>

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <whereClause docType="Document">
          <fixedPart>
            ecm:mixinType != 'HiddenInNavigation' AND
            ecm:isCheckedInVersion = 0 AND ecm:currentLifeCycleState !=
            'deleted' AND
            collectionMember:collectionIds/* = ?
          </fixedPart>
        </whereClause>
        <parameter>#{currentUserFavorites.id}</parameter>
        <sort ascending="true" column="dc:title"/>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <searchLayout name="collection_content_default"/>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
      </refresh>
      <cacheKey>only_one_cache</cacheKey>
      <cacheSize>1</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="document_virtual_navigation_listing_ajax" showCSVExport="true" showSyndicationLinks="true" title="document_listing" translateTitle="true"/>
      </resultLayouts>

      <selectionList>COLLECTION_CURRENT_SELECTION</selectionList>
      <actions category="COLLECTION_ACTION"/>

    </contentView>

  </extension>